#!/bin/bash 
set -x  
shdir=${0%/*}
cd $shdir
shdir=$PWD

rootdir=${shdir%/*}

echo $rootdir

ps -ef | grep django 

sleep 1

kill `cat $rootdir/status/django.pid`

sleep 3

ps -ef | grep django 


